package com.platform.core.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Description: 实体类
 *
 * @author Coder
 */
@Setter
@Getter
@Entity
@Table(name = "cd_jxc_manage")
public class CdJxcManageEntity implements Serializable {

    /**
    * id
    */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;
    /**
     * 产品名称
     */
    @Column(name = "product_name" )
    private String productName;

    /**
     * 规格
     */
    @Column(name = "specification" )
    private String specification;

    /**
     * 颜色
     */
    @Column(name = "color" )
    private String color;


    /**
     * 是否带涂层：1:有；0:无
     */
    @Column(name = "coating" )
    private String coating;



    /**
    * 产品id
    */
    @Column(name = "product_id" )
    private String productId;

    /**
    * 出入库数量
    */
    @Column(name = "count" )
    private Long count;

    /**
    * 0：半成品出入库，1:成品出入库
    */
    @Column(name = "category" )
    private String category;

    /**
    * 0:出；1:入
    */
    @Column(name = "outAndIn" )
    private String outandin;

    /**
    * 操作人
    */
    @Column(name = "operate_name" )
    private String operateName;

    /**
    * 创建日期
    */
    @Column(name = "create_date" )
    private LocalDateTime createDate;

    /**
    * 操作时间
    */
    @Column(name = "operate_date" )
    private LocalDate operateDate;

    /**
    * 批次id
    */
    @Column(name = "batch_id" )
    private String batchId;



    /**
     * comId
     */
    @Column(name = "comId" )
    private String comId;

}
